package etc.spec.ytt.week09.homework;

import java.util.ArrayList;
import java.util.List;

public class Master {
        List Pets;
        public Master(){

        }

    public Master(List pets) {
        Pets = pets;
    }
    void feed(IPet pet){
        pet.cry();
        pet.eat();
    }

    public List getPets() {
        return Pets;
    }

    public void setPets(List pets) {
        Pets = pets;
    }
}